//
//  DMpathemaDetailModel.m
//  CQKuaiYi
//
//  Created by ling on 17/1/9.
//  Copyright © 2017年 Mr.Cannon. All rights reserved.
//

#import "DMpathemaDetailModel.h"
#import "DMNetworkTool.h"

@implementation DMpathemaDetailModel

+(void)getPathemaDetailDataWithURLString:(NSString *)URLString andParameters:(NSDictionary *)parameters andSuccessBlock:(void (^)(NSArray *))successBlock
{
    [[DMNetworkTool shareDMNetwork] postURL:URLString parameter:parameters completion:^(id response) {
       
        if (response == nil)
        {
            NSLog(@"shibai");
        }
        else
        {
            NSDictionary *json = response;
            NSArray *arr = json[@"data"];
            NSArray *pathemaDetailArr = [NSArray yy_modelArrayWithClass:[DMpathemaDetailModel class] json:arr];
            successBlock(pathemaDetailArr);
        }
        
    }];
}

@end
